<script setup lang="ts" name="Child2">
import { ref } from 'vue'
import eventBus from './EventBus'
eventBus.$on('changeCount', (num) => {
  count.value += num
})
const count = ref(1)
</script>

<template>
  <div>Child2: {{ count }}</div>
</template>
